<template>
  <div>
    <p>计数器：{{ counter.count }}</p>
    <button @click="increment">增加</button>
  </div>
</template>

<script setup>
import { useCounterStore } from '../store';
const counter = useCounterStore();

function increment() {
  counter.increment();
}
</script>